# -*- coding: utf-8 -*-
"""
author:码同学 极光
date:2022-12-28
desc: 
sample: 
"""
import random

'''
张三科技有限公司有300名员工，开年会抽奖，奖项如下：
一等奖3名，泰国5日游
二等奖6名，iPhone手机
三等奖30名，微波炉
员工编号可以用1..300模拟
'''
#模拟300用户
#写法1
#brother=[]
# for i in range(1,301):
#     brother.append(i)
# #写法2
# brother = list(range(1,301))
#写法3 推导式
brother=[i for i in range(1,301)]
# print(brother)

#三等奖
third = random.sample(brother,30)
print(f"恭喜三等奖编号{third}的员工获取三等奖，奖品微波炉")

#二等奖
for i in third:
    brother.remove(i)

second = random.sample(brother,6)

print(f"恭喜二等奖编号{second}的员工获取三等奖，奖品iPhone手机")

#一等奖
for i in second:
    brother.remove(i)

print(len(brother))

first = random.sample(brother,3)
print(f"恭喜一等奖编号{first}的员工获取三等奖，泰国5日游")